package com.cy.pj.sys.dao;

import com.cy.pj.common.vo.Node;
import com.cy.pj.sys.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.omg.CORBA.INTERNAL;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysMenuDao {


    List<Map<String,Object>> findObjects();

    //基于id统计子菜单的个数
    int getChildCount(Integer id);

    //基于id删除菜单
    int deleteObject(Integer id);

    //查询上级菜单信息
    List<Node> findZtreeMenuNodes();

    int insertObject(SysMenu entity);

    int updateObject(SysMenu entity);

    List<String> findPermissions(Integer[] menuIds);

}
